<?php
/* @var $this VideoController */
$this->layout = '//layouts/video';
$this->pageTitle = '视频';
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/fancybox-demo.js',CClientScript::POS_END);
?>

<div class='container-fluid'>

	<div class='row-fluid'>
		<div class='span12 left-container'>
			<?php foreach($video as $k=>$v):?>
				<section class='well'>
					<h4><?php echo $v['title'];?></h4>
					<div class='divider'></div>
					<?php if(!empty($v['data'])):?>
						<?php foreach($v['data'] as $v_key=>$v_value):?>
							<ul class='video-list'>
								<p><?php echo $v_value['title'];?></p>
								<?php foreach($v_value['data'] as $data_key=>$data_value):?>
									<li>
										<a id='video' href='<?php echo $data_value['url'];?>'>
											<?php echo $data_value['title'];?>
										</a>
									</li>
								<?php endforeach;?>
							</ul>
						<?php endforeach;?>
					<?php else:?>
						<div><h4 style='text-align:center'>暂时没有资源</h4></div>
					<?php endif;?>
					
					<div class='divider'></div>
				</section>
			<?php endforeach;?>
		</div>
	</div>
</div>
